package cn.hfatec.shms.system.authData.model;


import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
public class AuthData {

    //
    private Integer id;
    //权限ID
    @NotBlank(message = "权限ID不能为空")
    @Pattern(regexp = "^ROLE_[A-Z,_]*", message = "权限ID不符合命名规则（^ROLE_*）")
    private String authId;
    //权限名称
    @NotBlank(message = "权限名称不能为空")
    private String authName;
    //备注
    private String remark;

    public Integer getId() {
        return this.id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getAuthId() {
        return this.authId;
    }
    public void setAuthId(String authId) {
        this.authId = authId;
    }
    public String getAuthName() {
        return this.authName;
    }
    public void setAuthName(String authName) {
        this.authName = authName;
    }
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
}